#pragma once

struct Palette 
{
    COLORREF colors[256]; 
};

class CShpPalette
{
public:
    CShpPalette(void);
    ~CShpPalette(void);

    vector<CString> GetPalettes();
    Palette* Get(CString name);

    COLORREF GetRGB(CString name, int id);
private:
    void LoadPalettes();
    void LoadPalette(CString fullname, CString filename);

    map<CString, Palette> m_mapPalettes;
    vector<CString> m_vecPalettes;
};

